<template>
    <el-container class="w-full">
        <el-header><h1>修改作业</h1></el-header>
        <el-container>
            <el-main>
                <work-edit-form :work-id="workId" @complete="editWorkSuccess"/>
            </el-main>

        </el-container>

    </el-container>
</template>

<script>
    import WorkEditForm from "../components/WorkEditForm";

    export default {

        components: {WorkEditForm},
        computed: {
            workId() {
                return parseInt(this.$route.params.work);
            }
        },
        methods: {
            editWorkSuccess() {
                this.$message.success('成功修改作业');
                // this.$router.push({name: 'work-index', params: {course: this.courseId}})
            }
        }
    }
</script>

<style scoped>

</style>